﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 

namespace JTicket.UI
{
    public partial class JT_SubAreaAdd : Page
    {
        public List<JTicket.Model.D_Area> _SubArea { get; set; }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
                Bind();
        }
        void Bind()
        {
            string ThCode = string.Empty;
            string ThName = string.Empty;
            if (Request.QueryString["ID"] != null)
            {
                ThCode = Request.QueryString["ID"].ToString();
            }
            _SubArea = BLL.D_Area.GetList(ThCode);
            ScriptManager.RegisterStartupScript(
               this, typeof(Page), "ThCode", string.Format("var thCode='{0}';var thname='{1}';", ThCode,""), true);
        }
    }
}